﻿using System.Text.Json.Serialization;
using Newtonsoft.Json;

namespace NP.BPMReportPlatform.Todo.Dto
{
    public class GetTodoInput : PagedAndSortedRequestDto
    {
        // /// <summary>
        // /// 当前页数，从第一页开始
        // /// </summary>
        //
        // [JsonProperty(PropertyName = "pageIndex")]
        // [JsonPropertyName("pageIndex")]
        // public new int PageIndex { get; set; }
        //
        // /// <summary>
        // /// 每页最大条数
        // /// </summary>
        //
        // [JsonProperty(PropertyName = "pageSize")]
        // [JsonPropertyName("pageSize")]
        // public new int PageSize { get; set; }
        //
        // /// <summary>
        // /// 排序字段
        // /// </summary>
        //
        // [JsonProperty(PropertyName = "sorting")]
        // [JsonPropertyName("sorting")]
        //
        // public new string Sorting { get; set; }

        /// <summary>
        /// 应用ID
        /// </summary>
        [JsonProperty(PropertyName = "appID")]
        [JsonPropertyName("appID")]
        public string AppId { get; set; }

        /// <summary>
        /// 审批人工号
        /// </summary>
        [JsonProperty(PropertyName = "currentUserId")]
        [JsonPropertyName("currentUserId")]
        public string CurrentUserId { get; set; }

        /// <summary>
        /// 审批人域账户
        /// </summary>
        [JsonProperty(PropertyName = "ADUser")]
        [JsonPropertyName("ADUser")]
        public string AdUser { get; set; }

        /// <summary>
        /// 流程实例号
        /// </summary>
        [JsonProperty(PropertyName = "procInstNo")]
        [JsonPropertyName("procInstNo")]
        public string ProcInstNo { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [JsonProperty(PropertyName = "topic")]
        [JsonPropertyName("topic")]
        public string Topic { get; set; }

        /// <summary>
        /// 值，0，1，2
        /// 默认：2
        /// All(0)（查询PC端和移动端待办）
        /// PC(1)（PC端待办）
        /// MB(2)（移动端待办）
        /// </summary>
        [JsonProperty(PropertyName = "toDoType")]
        [JsonPropertyName("toDoType")]
        public int TodoType { get; set; }

        /// <summary>
        /// 是否查询已消除代办
        /// </summary>
        [JsonProperty(PropertyName = "isOld")]
        [JsonPropertyName("isOld")]
        public bool IsOld { get; set; }
    }
}